# cmake needs this line 要求的最低版本
cmake_minimum_required(VERSION 2.8)

# Define project name 定义工程名
project(example_project)

# Find OpenCV, you may need to set OpenCV_DIR variable
# to the absolute path to the directory containing OpenCVConfig.cmake file
# via the command line or GUI 自动查找
find_package(OpenCV REQUIRED) 



# Declare the executable target built from your sources
add_executable(example example.cpp) #目标文件，源文件

# Link your application with OpenCV libraries
target_link_libraries(example PRIVATE ${OpenCV_LIBS}) #目标文件，库路径
